package com.zgkxzx.java.mutilThread.PCModel;

/**
 * 创建者 zgkxzx
 * 日期   12/29/17
 * 描述
 */

public class Producer implements Runnable {

    private Model eventModel;

    public Producer(Model eventModel) {
        this.eventModel = eventModel;
    }


    @Override
    public void run() {
        for (int i = 0; i < 100; i++)
            eventModel.putEvent();
    }
}
